x86/pv: Move exception injection into {,compat_}test_all_events()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 22 Mar 2018 11:27:03 +0000 (11:27 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 8 May 2018 17:13:13 +0000 (18:13 +0100)
commit0c6c2b1428658687b8f603bf248dec5bdcd882a9
treefbe1b9a3e3e1e318cbd67ecb32c3351a35c44d7f
parentf7d457524c7d4fbf8fba635452e12c057fe71e60
x86/pv: Move exception injection into {,compat_}test_all_events()

This allows paths to jump straight to {,compat_}test_all_events() and have
injection of pending exceptions happen automatically, rather than requiring
all calling paths to handle exceptions themselves.

The normal exception path is simplified as a result, and
compat_post_handle_exception() is removed entirely.

This is part of XSA-260 / CVE-2018-8897

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/x86_64/compat/entry.S
xen/arch/x86/x86_64/entry.S